package com.crm.common.config;

import lombok.Data;
import java.util.List;

@Data
public class PageResultBean<T> {
	private Long total;
	private List<T> items;

	public PageResultBean() {
	}

	public PageResultBean(Long total, List<T> items) {
		this.total = total;
		this.items = items;
	}

	public static <E> PageResultBean<E> getInstance(Long total, List<E> items) {
		return new PageResultBean<>(total, items);
	}

}

